package com.guodi.map.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guodi.map.entity.MapMetadata;
import com.guodi.map.mapper.MapMetadataMapper;
import com.guodi.map.service.IMapMetadataService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @描述：地图图层元数据表 服务类
 * @作者: 代鹏刚
 * @日期: 2019-12-27
 */
@Service
public class MapMetadataServiceImpl extends ServiceImpl<MapMetadataMapper, MapMetadata> implements IMapMetadataService {

    @Resource
    private MapMetadataMapper mapper;

    @Override
    public MapMetadata findByLayerId(String layerId) {
        return mapper.findByLayerId(layerId);
    }

    @Override
    public void deleteByLayerId(String layerId) {
        mapper.deleteByLayerId(layerId);
    }
}